package com.sdweizan.sdk.bytedance.bean.login;

import com.alibaba.fastjson.annotation.JSONField;
import com.sdweizan.sdk.bytedance.bean.BdBaseResponse;
import lombok.Data;
import lombok.NoArgsConstructor;

@lombok.Data
public class BdCode2SessionResponse extends BdBaseResponse {

  @JSONField(name = "data")
  private Data data;

  @NoArgsConstructor
  @lombok.Data
  public static class Data {
    @JSONField(name = "session_key")
    private String sessionKey;

    @JSONField(name = "openid")
    private String openId;

    @JSONField(name = "anonymous_openid")
    private String anonymousOpenId;

    @JSONField(name = "unionid")
    private String unionId;
  }
}
